package cn.com.headfree.depterprela.service.impl;

import cn.com.headfree.depterprela.dao.OrgDeptDao;
import cn.com.headfree.depterprela.service.OrgDeptService;
import cn.com.headfree.entity.*;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("orgDeptService")
public class OrgDeptServiceImpl implements OrgDeptService {
	private static final Logger LOG = LogManager.getLogger(OrgDeptServiceImpl.class);

	@Autowired
	private OrgDeptDao orgDeptDao;


	@Override
	public TOrgDept getOrgDeptById(String id) {
		return orgDeptDao.getOrgDeptById(id);
	}

	@Override
	public List<TOrgDept> findAll() {
		return orgDeptDao.findAll();
	}
}
